<?php

namespace App\Http\Controllers\Member;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Notifications\DatabaseNotification;

class NotifyController extends Controller
{
    public function  __construct()
    {
        $this->middleware('auth');
    }
    public function index(){
        return view('member.notify.index');
    }


    public function show(DatabaseNotification $notify){
        $notify->markAsRead();
        return redirect($notify['data']['link']);
    }
}
